import sys
import os.path
import time
import datetime
from django.shortcuts import *
from django.http import HttpResponse, HttpResponseRedirect
from django.template.loader import render_to_string
from google.appengine.api import users
from django.http import Http404
from django.template import TemplateDoesNotExist
from django.conf.urls.defaults import *

from google.appengine.api import urlfetch
from xml.etree import ElementTree
from google.appengine.api import memcache
from app.context import HttpContext
from django.views.decorators.cache import cache_page
import settings

#---------------- request handlers ---------------------------------------------

@cache_page(0)
def data(request):
	context = HttpContext(request)
	return context.render(template='admin/data.html')

@cache_page(0)
def navigation(request):
	context = HttpContext(request)
	return context.render(template='admin/navigation.html')

@cache_page(0)
def help(request):
	context = HttpContext(request)
	return context.render(template='admin/help.html')



urlpatterns = patterns('',
	url(r'^admin/data$', data, name='admin.data')
	, url(r'^admin/navigation$', navigation, name='admin.navigation')
	, url(r'^admin/help$', help, name='admin.help')
)

